#ifndef SelectorModel_H
#define SelectorModel_H

#include <QtGui>
#include "ModelItems/TreeItem.h"

namespace Xps
{
	class SelectorModel : public QProxyModel
	{
	public:

		TreeItem* root;

		SelectorModel();

		void setModel(QAbstractItemModel * model, int mode);
		QVariant data(const QModelIndex & index, int role ) const;
		Qt::ItemFlags flags(const QModelIndex & index) const;
		int sizeHintForRow(int row);
		int rowCount(const QModelIndex &parent) const;
		int columnCount(const QModelIndex &parent) const;
		QModelIndex parent(const QModelIndex & index) const;
		QModelIndex index(int row, int column, const QModelIndex &parent) const;
	};
}
#endif